class ApiException implements Exception {
  String message;
  String code;
  ApiException({required this.code, required this.message});
  Map<String, String> toJson() {
    return {"message": message, "code": code};
  }
}

enum EXP {
  correct("200", "correct"),
  error("500", "error"),
  ;

  final String title;
  final String code;

  const EXP(this.code, this.title);
}
